package gdl.test.dao;

import java.util.List;

import gdl.test.bean.User;
import gdlDao.framework.annotation.GdlDao;
import gdlDao.framework.annotation.GdlSQL;
import gdlDao.framework.dao.GdlBaseDaoInterface;

@GdlDao
public interface IUserDao extends GdlBaseDaoInterface<User> {
	@GdlSQL(sql="select * from t_user",entityClass="gdl.test.bean.User")
	public List<User> findAll();
	
	@GdlSQL(sql="select username from t_user where nickname='gdl'")
	public String findusername();
	
	@GdlSQL(sql="select * from t_user where id= ?",entityClass="gdl.test.bean.User")
	public User findById(int id);
}
